Skip to content

Add a by-hand real-model release check for Linux, Windows and macOS - #7

Merged
dandydarshan merged 2 commits into
mainfrom
chore/release-check
Oct 21, 2026
Merged

dandydarshan merged 2 commits into
mainfrom
chore/release-check

Conversation

@dandydarshan

@dandydarshan dandydarshan commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner

mise ~/.config/mise/config.toml tools: gh@2.101.0
Adds packaging/release_check/release_check.py, a stdlib-only script you run by hand once per OS (Linux, Windows, macOS) with a real API key, before or after publishing to PyPI. CI doesn't run it: pytest only collects tests/.

It does the following:

  1. Creates a fresh venv and installs uv.
  2. Installs nc-codewiki from PyPI (--package) or from a local wheel file or folder (--wheel); with neither flag it asks which one.
  3. Sets config from a key = value file, written to an isolated home folder so the real ~/.codewiki config and keyring are never touched, then runs config validate.
  4. Clones the repo and runs generate --verbose --github-pages at main~10.
  5. Runs generate --update at main.
  6. Calls codewiki_status, codewiki_search and codewiki_ask through the MCP server, and runs codewiki ask from the CLI.
  7. Writes logs.txt, docs.zip, update-logs.txt, docs-updated.zip, mcp-logs.txt and summary.txt into one output folder per run.

If the uv install fails, the script records the failure and retries with pip, so the rest of the check still runs. While testing, this happened because of a corrupt uv cache entry for pythonmonkey on the dev machine. The package itself is fine: uv pip install --no-cache installs it, and uv cache clean pythonmonkey clears the bad entry.

Tested locally on Linux:

  • install, --version and config set;
  • the API key is masked in every log;
  • the config stays in the isolated home folder;
  • validate fails and the script stops when the URL is bad;
  • the git checkouts;
  • the MCP client against an existing docs/ folder.

The full generate and update run with a real key has not been done yet.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NPESxdUcusPErYqA1Jzn9J

Darshan M U and others added 2 commits October 21, 2026 10:42
packaging/release_check/release_check.py installs nc-codewiki from PyPI or a
local wheel into a fresh venv, sets config from a key = value file (in an
isolated home, so the real ~/.codewiki and keyring are untouched), validates
it, generates docs at main~10, updates them at main, and asks questions
through the MCP server and the CLI. Logs, zipped docs and a PASS/FAIL summary
land in one folder per run. Stdlib only; not run by CI (pytest collects
tests/ only).

If uv rejects the install it records the failure and retries with pip: on
Python 3.14, uv refuses pythonmonkey 1.4.1 (pulled in by mermaid-parser-py)
because its wheel has no Wheel-Version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NPESxdUcusPErYqA1Jzn9J
The previous commit blamed pythonmonkey 1.4.1's wheel. Its WHEEL file is
valid and `uv pip install --no-cache` installs it; the failure came from a
bad entry in the local uv cache (`uv cache clean pythonmonkey` fixes it).
The pip fallback stays as a safety net; only its comment changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NPESxdUcusPErYqA1Jzn9J
@dandydarshan
dandydarshan merged commit 810f177 into main Oct 21, 2026
13 checks passed
@dandydarshan
dandydarshan deleted the chore/release-check branch October 21, 2026 05:41
@dandydarshan dandydarshan mentioned this pull request Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant